home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1139 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Date: 11 Jan 1996 12:49:22 EST
  2. Path: gcomm.com!jackal
  3. Newsgroups: comp.lang.c
  4. From: jackal@gcomm.com (Jack Alvrus)
  5. Message-ID: <8213825629501@demosys.gcomm.com>
  6. Organization: Galacticomm, Inc.
  7. References: <TANMOY.96Jan10212912@qcd.lanl.gov>
  8. Subject: Re: stricmp()
  9.  
  10.  
  11. TA>A rare post with so many wrong assumptions!!! :-)
  12.  
  13. Well, if they're wrong it's a good thing I made this post to find out,
  14. eh?  :)
  15.  
  16. TA>   stricmp() is an ANSI library function, right?  So it should exhibit, if
  17.  
  18. TA>no.
  19.  
  20. So far that's been the overwhelming response, and if that is in fact
  21. correct that's fine.  I do not have access to a copy of the ANSI C spec
  22. so I cannot verify this for myself, however, the Borland C++ v4.5
  23. Library Reference manual states that stricmp() is "defined by the ANSI C
  24. standard."  Perhaps someone should notify Borland?
  25.  
  26. TA>   not consistent, at least *documented* behavior, right?
  27.  
  28. TA>no and no. Usually library functions have certain requirments on their
  29. TA>parameters, and a violation of these can lead to undefined behaviour,
  30. TA>which need neither be consistent nor documented.
  31.  
  32. Ah, but the requirements ARE documented.  If, under certain conditions,
  33. behavior is undefined, then if those conditions are documented the
  34. behavior is also documented.  These conditions are part of what I'm
  35. trying to find out.
  36.  
  37. TA>Any use of an object with external linkage leads to undefined
  38. TA>behaviour if the implementation does not explicitly permit and
  39. TA>define such use.
  40.  
  41. Are you sure you aren't a lawyer? :)
  42.  
  43. Thanks for your response.
  44.  
  45.  Jack Alvrus
  46.  Galacticomm Software Engineer
  47.